package cn.gson.springboot.model.service;



import cn.gson.springboot.model.dao.DepartmentDao;
import cn.gson.springboot.model.dao.EmployeeDao;
import cn.gson.springboot.model.mapper.FunctionTypeMapper;
import cn.gson.springboot.model.pojos.Department;
import cn.gson.springboot.model.pojos.Employee;
import cn.gson.springboot.model.pojos.Function;
import cn.gson.springboot.model.pojos.FunctionType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;


@Service
@Transactional(rollbackFor = Exception.class)
public class PrivilegeService {
    @Autowired
    EmployeeDao empDao;


    public Employee findEmp(Employee emp){
        return empDao.findByEmpNameAndEmpPwd(emp.getEmpName(),emp.getEmpPwd());
    }

}
